import request from '@/utils/request'

export function getMovieList(params) {
  return request({
    url: '?s=App.Movie_MovieList.getHome',
    method: 'get',
    params
  })
}
export function getMovieInfo(params) {
  return request({
    url: '?s=App.Movie_MovieList.getMovieInfo',
    method: 'get',
    params
  })
}
export function getMovieByPid(params) {
  return request({
    url: '?s=App.Movie_MovieList.getMovieByPid',
    method: 'get',
    params
  })
}
export function getMovieByYear(params) {
  return request({
    url: '?s=App.Movie_MovieList.getMovieByYear',
    method: 'get',
    params
  })
}
export function getMovieBySourceId(params) {
  return request({
    url: '?s=App.Movie_MovieList.getMovieBySourceId',
    method: 'get',
    params
  })
}
export function searchMovieList(params) {
  return request({
    url: '?s=App.Movie_MovieList.searchMovieList',
    method: 'get',
    params
  })
}
export function getLikeList(params) {
  return request({
    url: '?s=App.Movie_MovieList.getLikeList',
    method: 'get',
    params
  })
}
export function updateMovie(params) {
  return request({
    url: '?s=App.Movie_MovieList.update',
    method: 'post',
    params
  })
}
export function deleteMovie(params) {
  return request({
    url: '?s=App.Movie_MovieList.delete',
    method: 'post',
    params
  })
}
export function getMovieDetail(params) {
  return request({
    url: '?s=App.Movie_MovieDetail.getList',
    method: 'get',
    params
  })
}

